package com.custom;

import com.Constants;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerCustomBinding {

    @RabbitListener(queues = "q1")
    public void receiveQ1(String hello) {
        System.out.println("监听者从队列q1接收到了： = " + hello);
    }

    @RabbitListener(queues = "q2")
    public void receiveQ2(String hello) {
        System.out.println("监听者从队列q2接收到了： = " + hello);
    }

}
